#include "task_cycle.h"
#include "FreeRTOS.h"
#include "task.h"

#include "74hc595.h"
#include "app_can.h"
#include "hek1008.h"
#include "hek1016.h"

#define TASK_PRIO_STACKSIZE_20ms 256

static TaskHandle_t task_20ms_handle = NULL;

void Task_20ms(void);

void Task_20ms_init(void)
{
    xTaskCreate((TaskFunction_t)Task_20ms,"20ms_task",TASK_PRIO_STACKSIZE_20ms,NULL,TASK_PRIO_20ms,(TaskHandle_t *)task_20ms_handle);
}

void Task_20ms(void)
{
  while(1)
  {
		HC595_Run();
		hek1008_run();
    hek1016_run();
    //user_app_run();
    vTaskDelay(20);
  }
}






